//
//  RecommendViewController.m
//  firstpoint
//
//  Created by 泽中 on 2017/7/19.
//  Copyright © 2017年 xzcysoft. All rights reserved.
//

#import "RecommendViewController.h"

@interface RecommendViewController ()

@end

@implementation RecommendViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title=@"我的推荐";
    self.view.backgroundColor=LRRGBColor(235, 240, 242);
    [self setUI];
}
-(void)setUI
{
    UIView*view1=[[UIView alloc]initWithFrame:CGRectMake(0, 74, width_screen, 75)];
    view1.backgroundColor=[UIColor whiteColor];
    [self.view addSubview:view1];
    UILabel*titleLab=[[UILabel alloc]initWithFrame:CGRectMake(20, 20, width_screen-20, 14)];
    titleLab.text=@"我的推广连接";
    [view1 addSubview:titleLab];
    UILabel*urlLab=[[UILabel alloc]initWithFrame:CGRectMake(20, 50, width_screen-20, 13)];
    urlLab.text=@"www.baidu.com";
    [view1 addSubview:urlLab];
    //分享
    UIView*view2=[[UIView alloc]initWithFrame:CGRectMake(0, 150, width_screen, 120)];
    view2.backgroundColor=[UIColor whiteColor];
    [self.view addSubview:view2];
    UILabel*titleLab2=[[UILabel alloc]initWithFrame:CGRectMake(20, 20, width_screen-20, 14)];
    titleLab2.text=@"分享给好友";
    [view2 addSubview:titleLab2];
    
    int button_w=(width_screen-90-45)/3;
    UIImage*img1=[UIImage imageNamed:@"xxgrzxqq"];
    UIImage*img2=[UIImage imageNamed:@"xxgrzxtx"];

    UIImage*img3=[UIImage imageNamed:@"xxgrzxwx"];

    UIImage*img4=[UIImage imageNamed:@"xxtrzxwb"];

    NSArray*buttonImgArr=@[img1,img2,img3,img4];
    for (int i=0; i<4; i++) {
        UIButton*shareButton=[UIButton buttonWithType:UIButtonTypeCustom];
        shareButton.frame=CGRectMake(45+button_w*i, 50, 45, 45);
        [shareButton setImage:buttonImgArr[i] forState:0];
        [view2 addSubview:shareButton];
    }
   //
    UIView*view3=[[UIView alloc]initWithFrame:CGRectMake(0, 280, width_screen, 65)];
    view3.backgroundColor=LRRGBColor(253, 246, 230);
    [self.view addSubview:view3];
    UILabel*lab=[[UILabel alloc]initWithFrame:CGRectMake(20, 0, width_screen-40, 65)];
    lab.font=[UIFont systemFontOfSize:13];
    lab.numberOfLines=0;
    lab.text=@"聚沙成塔，成就任务。邀请好友数和累计完成任务数。每次增加100成长值";
    [view3 addSubview:lab];
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
